package com.dylhsh.fkglxt.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dylhsh.fkglxt.service.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DelController {
    @Reference
    private userService userService;
    @Reference
    private lfdjbService lfdjbService;
    @RequestMapping("delUser")
    public boolean delUser(int id){
        if (userService.delUser(id)!=0)
            return true;
        return false;
    }
    @RequestMapping("delLfdjb")
    public boolean delLfdjb(int id){
        if (lfdjbService.delLfdjb(id)!=0)
            return true;
        return false;
    }
}
